package com.group3.fallback.user;

import com.group3.Feign.UserServiceFeign;
import com.group3.model.User;
import org.springframework.stereotype.Component;

@Component
public class UserServiceFallback implements UserServiceFeign {
    @Override
    public User getUserByUid(Integer uid) {
        User user=new User();
        user.setUid(-999);
         user.setUsername("用户服务不可用");
        return user;
    }
}
